package com.huifai.service;

import com.huifai.entity.SysPermission;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 * 菜单权限表 服务类
 * </p>
 *
 * @author wcj
 * @since 2019-07-16
 */
public interface ISysPermissionService extends IService<SysPermission> {

    List<SysPermission> findSysPermissions(List<Long> roleIds,String code);
    /**
     * 查询多角色拥有的菜单权限
     * @param roleIds
     * @return
     */
    List<SysPermission> findSysPermissionsByRoles(List<Long> roleIds);

    /**
     * 查询admin所有菜单权限
     * @param code
     * @return
     */
    List<SysPermission> findSysPermissionsByAll(String code);
}
